<!-- $Id: goods_search.htm 16790 2009-11-10 08:56:15Z wangleisvn $ -->
<div class="form-div">
  <form action="javascript:searchGoods()" name="searchForm">
    <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
    <?php if ($_GET['act'] != "trash"): ?>

    <select name="brand_id"><option value="-1">所有品牌</option>    	  	<?php $_from = $this->_var['brand']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'info_type');if (count($_from)):
    foreach ($_from AS $this->_var['info_type']):
?>									<option value="<?php echo $this->_var['info_type']['brand_id']; ?>" ><?php echo $this->_var['info_type']['brand_name']; ?>									</option>			<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>    </select>

    <!-- 上架 -->
    <?php endif; ?>
    <!-- 关键字 -->
    <?php echo $this->_var['lang']['keyword']; ?> <input type="text" name="keyword" size="15" />
    <input type="submit" value="<?php echo $this->_var['lang']['button_search']; ?>" class="button" />
  </form>
</div>


<script language="JavaScript">		function get_brand(){			var brand_type=document.getElementById('brand_type').value;			if(brand_type==1){document.getElementById('brand_id').style.display="";}else {document.getElementById('brand_id').style.display='none';}					}
    function searchGoods()
    {

        <?php if ($_GET['act'] != "trash"): ?>
//      listTable.filter['cat_id'] = document.forms['searchForm'].elements['cat_id'].value;
        listTable.filter['brand_id'] = document.forms['searchForm'].elements['brand_id'].value;
//      listTable.filter['technology_type'] = document.forms['searchForm'].elements['technology_type'].value;        //      listTable.filter['brand_type'] = document.forms['searchForm'].elements['brand_type'].value;
          <?php if ($this->_var['suppliers_exists'] == 1): ?>
          listTable.filter['suppliers_id'] = document.forms['searchForm'].elements['suppliers_id'].value;
          <?php endif; ?>
//      listTable.filter['is_on_sale'] = document.forms['searchForm'].elements['is_on_sale'].value;
        <?php endif; ?>

        listTable.filter['keyword'] = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
        listTable.filter['page'] = 1;

        listTable.loadList();
    }
</script>
